<?php 
$list_features = $privilege->getFeatures($user->role_id,2);
foreach ($list_features as $key => $list_feature)
    $features[$key]= $list_feature;
?>
